package ncsutest.monitors;

import com.sun.spot.sensorboard.peripheral.LEDColor;

import ncsutest.NCSUCalibrationBase;
import ncsutest.NCSUCalibrationMonitor;
import ncsutest.util.LEDs;

public class LEDCalibrationMonitor extends NCSUCalibrationMonitor {
	public LEDCalibrationMonitor(NCSUCalibrationBase calibration) {
		super(calibration);
	}
	
	public void calibrationStart(int calibNum) {
		int index = calibrationNumberToIndex(calibNum);
		
		System.out.println("Starting calibration " + index);
		LEDs.displayBinaryNumber(LEDColor.YELLOW, index+1, 7);
	}
	
	public void calibrationFinish(int calibNum) {
		int index = calibrationNumberToIndex(calibNum);

		System.out.println("Finished calibration " + index);
		LEDs.clearLEDs(4, 7);
	}
}
